From 4c46d69b2948c96561ae9e5eeccc786a02830302 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 9 Jun 2008 09:37:22 +0100 Subject: [PATCH] acm: Allow remove of labels from suspended domains. Signed-off-by: Stefan Berger --- tools/python/xen/xend/XendDomainInfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9381ad78c2..8a97bad326 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2891,9 +2891,9 @@ class XendDomainInfo: DOM_STATES[state]) return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) - # Remove security label. Works only for halted domains + # Remove security label. Works only for halted or suspended domains if not seclab or seclab == "": - if state not in [ DOM_STATE_HALTED ]: + if state not in [ DOM_STATE_HALTED, DOM_STATE_SUSPENDED ]: return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) if self.info.has_key('security_label'): -- 2.30.2